package com.zhuoshi.entity;

import java.util.ArrayList;
import java.util.List;

public class OpeningreporthouseparticularExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OpeningreporthouseparticularExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOpeningreportidIsNull() {
            addCriterion("openingreportid is null");
            return (Criteria) this;
        }

        public Criteria andOpeningreportidIsNotNull() {
            addCriterion("openingreportid is not null");
            return (Criteria) this;
        }

        public Criteria andOpeningreportidEqualTo(Integer value) {
            addCriterion("openingreportid =", value, "openingreportid");
            return (Criteria) this;
        }

        public Criteria andOpeningreportidNotEqualTo(Integer value) {
            addCriterion("openingreportid <>", value, "openingreportid");
            return (Criteria) this;
        }

        public Criteria andOpeningreportidGreaterThan(Integer value) {
            addCriterion("openingreportid >", value, "openingreportid");
            return (Criteria) this;
        }

        public Criteria andOpeningreportidGreaterThanOrEqualTo(Integer value) {
            addCriterion("openingreportid >=", value, "openingreportid");
            return (Criteria) this;
        }

        public Criteria andOpeningreportidLessThan(Integer value) {
            addCriterion("openingreportid <", value, "openingreportid");
            return (Criteria) this;
        }

        public Criteria andOpeningreportidLessThanOrEqualTo(Integer value) {
            addCriterion("openingreportid <=", value, "openingreportid");
            return (Criteria) this;
        }

        public Criteria andOpeningreportidIn(List<Integer> values) {
            addCriterion("openingreportid in", values, "openingreportid");
            return (Criteria) this;
        }

        public Criteria andOpeningreportidNotIn(List<Integer> values) {
            addCriterion("openingreportid not in", values, "openingreportid");
            return (Criteria) this;
        }

        public Criteria andOpeningreportidBetween(Integer value1, Integer value2) {
            addCriterion("openingreportid between", value1, value2, "openingreportid");
            return (Criteria) this;
        }

        public Criteria andOpeningreportidNotBetween(Integer value1, Integer value2) {
            addCriterion("openingreportid not between", value1, value2, "openingreportid");
            return (Criteria) this;
        }

        public Criteria andRoomidIsNull() {
            addCriterion("roomid is null");
            return (Criteria) this;
        }

        public Criteria andRoomidIsNotNull() {
            addCriterion("roomid is not null");
            return (Criteria) this;
        }

        public Criteria andRoomidEqualTo(Integer value) {
            addCriterion("roomid =", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidNotEqualTo(Integer value) {
            addCriterion("roomid <>", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidGreaterThan(Integer value) {
            addCriterion("roomid >", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidGreaterThanOrEqualTo(Integer value) {
            addCriterion("roomid >=", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidLessThan(Integer value) {
            addCriterion("roomid <", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidLessThanOrEqualTo(Integer value) {
            addCriterion("roomid <=", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidIn(List<Integer> values) {
            addCriterion("roomid in", values, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidNotIn(List<Integer> values) {
            addCriterion("roomid not in", values, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidBetween(Integer value1, Integer value2) {
            addCriterion("roomid between", value1, value2, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidNotBetween(Integer value1, Integer value2) {
            addCriterion("roomid not between", value1, value2, "roomid");
            return (Criteria) this;
        }

        public Criteria andPaymenttypeidIsNull() {
            addCriterion("paymenttypeid is null");
            return (Criteria) this;
        }

        public Criteria andPaymenttypeidIsNotNull() {
            addCriterion("paymenttypeid is not null");
            return (Criteria) this;
        }

        public Criteria andPaymenttypeidEqualTo(Integer value) {
            addCriterion("paymenttypeid =", value, "paymenttypeid");
            return (Criteria) this;
        }

        public Criteria andPaymenttypeidNotEqualTo(Integer value) {
            addCriterion("paymenttypeid <>", value, "paymenttypeid");
            return (Criteria) this;
        }

        public Criteria andPaymenttypeidGreaterThan(Integer value) {
            addCriterion("paymenttypeid >", value, "paymenttypeid");
            return (Criteria) this;
        }

        public Criteria andPaymenttypeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("paymenttypeid >=", value, "paymenttypeid");
            return (Criteria) this;
        }

        public Criteria andPaymenttypeidLessThan(Integer value) {
            addCriterion("paymenttypeid <", value, "paymenttypeid");
            return (Criteria) this;
        }

        public Criteria andPaymenttypeidLessThanOrEqualTo(Integer value) {
            addCriterion("paymenttypeid <=", value, "paymenttypeid");
            return (Criteria) this;
        }

        public Criteria andPaymenttypeidIn(List<Integer> values) {
            addCriterion("paymenttypeid in", values, "paymenttypeid");
            return (Criteria) this;
        }

        public Criteria andPaymenttypeidNotIn(List<Integer> values) {
            addCriterion("paymenttypeid not in", values, "paymenttypeid");
            return (Criteria) this;
        }

        public Criteria andPaymenttypeidBetween(Integer value1, Integer value2) {
            addCriterion("paymenttypeid between", value1, value2, "paymenttypeid");
            return (Criteria) this;
        }

        public Criteria andPaymenttypeidNotBetween(Integer value1, Integer value2) {
            addCriterion("paymenttypeid not between", value1, value2, "paymenttypeid");
            return (Criteria) this;
        }

        public Criteria andRoomtotalIsNull() {
            addCriterion("roomtotal is null");
            return (Criteria) this;
        }

        public Criteria andRoomtotalIsNotNull() {
            addCriterion("roomtotal is not null");
            return (Criteria) this;
        }

        public Criteria andRoomtotalEqualTo(Integer value) {
            addCriterion("roomtotal =", value, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalNotEqualTo(Integer value) {
            addCriterion("roomtotal <>", value, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalGreaterThan(Integer value) {
            addCriterion("roomtotal >", value, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalGreaterThanOrEqualTo(Integer value) {
            addCriterion("roomtotal >=", value, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalLessThan(Integer value) {
            addCriterion("roomtotal <", value, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalLessThanOrEqualTo(Integer value) {
            addCriterion("roomtotal <=", value, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalIn(List<Integer> values) {
            addCriterion("roomtotal in", values, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalNotIn(List<Integer> values) {
            addCriterion("roomtotal not in", values, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalBetween(Integer value1, Integer value2) {
            addCriterion("roomtotal between", value1, value2, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalNotBetween(Integer value1, Integer value2) {
            addCriterion("roomtotal not between", value1, value2, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoompriceIsNull() {
            addCriterion("roomprice is null");
            return (Criteria) this;
        }

        public Criteria andRoompriceIsNotNull() {
            addCriterion("roomprice is not null");
            return (Criteria) this;
        }

        public Criteria andRoompriceEqualTo(Integer value) {
            addCriterion("roomprice =", value, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceNotEqualTo(Integer value) {
            addCriterion("roomprice <>", value, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceGreaterThan(Integer value) {
            addCriterion("roomprice >", value, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("roomprice >=", value, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceLessThan(Integer value) {
            addCriterion("roomprice <", value, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceLessThanOrEqualTo(Integer value) {
            addCriterion("roomprice <=", value, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceIn(List<Integer> values) {
            addCriterion("roomprice in", values, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceNotIn(List<Integer> values) {
            addCriterion("roomprice not in", values, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceBetween(Integer value1, Integer value2) {
            addCriterion("roomprice between", value1, value2, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceNotBetween(Integer value1, Integer value2) {
            addCriterion("roomprice not between", value1, value2, "roomprice");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}